class CreateVotes < ActiveRecord::Migration
  def self.up
    create_table :votes do |t|
      t.references :user
      t.references :thought
      t.integer :value, :default => 1
    end
    add_column :thoughts, :vote_score, :integer, :default => 0
  end

  def self.down
    drop_table :votes
    drop_column :thoughts, :vote_score
  end
end
